
const randomNumber = (...args) => {
    switch(args.length){
        case 1:
            return parseInt(Math.random()  * args[0] + 1,10);
        case 2:
            return parseInt(Math.random() * (args[1] - args[0] + 1) + args[0],10);
        default:
            return 0;
    }
};

export default {
    randomNumber,
};
